﻿module ListUtility

let elementArrayIndex(element,  a : array<_>) = 
    let mutable counter = -1
    let length = Array.length a
    for i in 0..length do
        let item = a.[i]
        if (item = element) then
            counter <- i
    counter

let copy (iList) =
    let res = 
        [
            for item in iList do
                item
        ] 
    res

